projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6847db
)
mmc: omap: Allow OMAP_HSMMC[23]_BASE to be unset
author
Tom Rini
<
[email protected]
>
Wed, 12 Oct 2011 06:20:50 +0000
(06:20 +0000)
committer
Albert ARIBAUD
<
[email protected]
>
Thu, 27 Oct 2011 19:56:35 +0000
(21:56 +0200)
Not all omap families define OMAP_HSMMC[23]_BASE so condition those
cases in omap_mmc_init().
Cc: Sandeep Paulraj <
[email protected]
>
Signed-off-by: Tom Rini <
[email protected]
>
Signed-off-by: Sandeep Paulraj <
[email protected]
>
drivers/mmc/omap_hsmmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/omap_hsmmc.c
b/drivers/mmc/omap_hsmmc.c
index 5d4cf51104a7936377dc27a2f18e8240ada9a24a..ebda980fbcbc4a2b4d2c6bdda7e3f068a3198d80 100644
(file)
--- a/
drivers/mmc/omap_hsmmc.c
+++ b/
drivers/mmc/omap_hsmmc.c
@@
-475,12
+475,16
@@
int omap_mmc_init(int dev_index)
case 0:
mmc->priv = (hsmmc_t *)OMAP_HSMMC1_BASE;
break;
+#ifdef OMAP_HSMMC2_BASE
case 1:
mmc->priv = (hsmmc_t *)OMAP_HSMMC2_BASE;
break;
+#endif
+#ifdef OMAP_HSMMC3_BASE
case 2:
mmc->priv = (hsmmc_t *)OMAP_HSMMC3_BASE;
break;
+#endif
default:
mmc->priv = (hsmmc_t *)OMAP_HSMMC1_BASE;
return 1;